// Package imports:
import 'package:freezed_annotation/freezed_annotation.dart';

part 'easy_refresh_state.freezed.dart';

@freezed
class EasyRefreshState with _$EasyRefreshState {
  const factory EasyRefreshState.loadding() = Loadding;
  const factory EasyRefreshState.refreshStart() = RefreshStart;
  const factory EasyRefreshState.refreshErr({required String error}) =
      RefreshErr;
  const factory EasyRefreshState.refreshSuccess({required bool hasMore}) =
      RefreshSuccess;
  const factory EasyRefreshState.loadMoreStart() = LoadMoreStart;
  const factory EasyRefreshState.loadMoreErr({required String error}) =
      LoadMoreErr;
  const factory EasyRefreshState.loadMoreSuccess({required bool hasMore}) =
      LoadMoreSuccess;
}
